package edu.java.lectures.lec07.coupling;

import edu.java.lectures.lec07.coupling.printing.Printable;
import edu.java.lectures.lec07.coupling.printing.PrinterHandler;
import edu.java.lectures.lec07.coupling.printing.Printirasht;

// loosely coupling
public class CopyShop {

    private Printirasht printerHandler = new PrinterHandler();
    private double profit = 0;

    // PrintirashObjFactory.instance().createPRintirashtObject();
    public void print(Printable printableObject) {
	printerHandler.print(printableObject);
	profit++;
    }
}

/*
 * user interface layer service layer domain layer -> obektite ot oblastta w
 * koqto shte e programata infrastructure layer
 */

